export enum ModalShowType {
  Hide,
  New,
  Edit,
  View,
}

export type GenericResult<T> = {
  success: boolean
  data?: {
    /** 列表数据 */
    list: Array<T>
    /** 总数 */
    total?: number
  }
}

export type DictTerm = { dictLabel: string; dictValue: string }

export const ModalShowTitle: Map<ModalShowType, string> = new Map([
  [ModalShowType.New, '新建'],
  [ModalShowType.Edit, '编辑'],
  [ModalShowType.View, '查看'],
  [ModalShowType.Hide, ''],
])
